package com.boruiimage.demo.doMain;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.util.Date;

public class user {
    private Integer id;
    private String userName;
    private String userPassword;
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    private Date data;
    public user(Integer id, String userName, String userPassword, Date data) {
        this.id = id;
        this.userName = userName;
        this.userPassword = userPassword;
        this.data = data;
    }

    public user(String userName, String userPassword, Date data) {
        this.userName = userName;
        this.userPassword = userPassword;
        this.data = data;
    }
    public user() {

    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getUserPassword() {
        return userPassword;
    }

    public void setUserPassword(String userPassword) {
        this.userPassword = userPassword;
    }

    public Date getData() {
        return data;
    }

    public void setData(Date data) {
        this.data = data;
    }

    @Override
    public String toString() {
        return "user{" +
                "id=" + id +
                ", userName='" + userName + '\'' +
                ", userPassword='" + userPassword + '\'' +
                ", data=" + data +
                '}';
    }
}
